import {
    request
} from '../utils/request'


export const userLoginPassword = (data) => {
    return request(
        'POST',
        '/user/web/login',
        data
    )
}


export const userLoginBind = (data) => {
    return request(
        'POST',
        '/user/web/bindLogin',
        data
    )
}


export const getCode = (params) => {
    return request(
        'GET',
        '/user/login/sms/check/code',
        params
    )
}

export const getMcu = (params) => {
    return request(
        'POST',
        '/user/web/get/need/upgrade',
        params
    )
}


export const addCJH = (data) => {
    return request(
        'POST',
        '/user/web/add/cjh',
        data
    )
}


export const uploadLogs = (data) => {
    return request(
        'POST',
        '/user/web/uplaodlogs',
        data
    )
}


export const updatePwd = (data) => {
    return request(
        'PUT',
        '/user/web/updatePassword',
        data
    )
}